<?php


namespace App\Constants;
class PayCodeData
{
    const ALI_PAY = 1;

    const WX_PAY = 2;

    const IOS_PAY = 3;

    const GOOGLE_PAY = 10;

    const PAY_PLUS_INDO = 11;

    public static function getCodeData($code): string
    {
        $data = [
            self::ALI_PAY => '支付宝支付',
            self::WX_PAY => '微信支付',
            self::IOS_PAY => '苹果支付',
            self::GOOGLE_PAY => '谷歌支付',
            self::PAY_PLUS_INDO => '印尼商务号',
        ];
        return $data[$code] ?? '未知错误';
    }


}